import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
export function tokenStartTime() {
  return Cookies.set("tokenStartTime", new Date().getTime())
}
export function settokenTime() {
  return Cookies.get("tokenStartTime")
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getUserDataList() {
  return Cookies.get('UserDataList')
}

export function setUserDataList(UserDataLists) {
  return Cookies.set('UserDataList', UserDataLists)
}